# _*_ coding: utf-8 _*_
from odoo import models, api, fields, _
from odoo.exceptions import Warning


class OLStockPickingExtend(models.Model):
    _inherit = "stock.picking"

    @api.multi
    def do_new_transfer(self):
        self.ensure_one()
        if not self.force_date:
            self.force_date = fields.Date.today()
        return super(OLStockPickingExtend, self).do_new_transfer()
